package com.lwm.service.impl;


import com.lwm.service.IAccountService;

import java.util.Date;

/**
 * @author liweimin
 * @date 2021/6/1 16:23
 * @since
 */
public class AccountServiceImpl implements IAccountService {

    private String name;
    private Integer age;
    private Date birthday;

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public AccountServiceImpl(String name, Integer age, Date birthday) {
        this.name = name;
        this.age = age;
        this.birthday = birthday;
        System.out.println("执行全参构造器");
    }


    public AccountServiceImpl() {
        System.out.println("执行空参构造器");
    }

    @Override
    public void saveAccount() {
        System.out.println("模拟创建了对象。。。" + this.name + "," + this.age + "," + this.birthday);
    }

}
